package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    Integer id;
    String teacherName;
    String subject;
    String profession;
    String school;
    String introduce;
    Integer loginId;
    private User user;

    public User createUser(){
        // 创建用户并关联到教师对象
        User user = new User();
        user.setEmail(null);
        user.setBirthday(null);
        user.setPassword("123456");
        user.setGender(null);
        user.setLoginName(teacherName);
        user.setStatus("1");
        return user;
    }



}
